﻿<UserControl x:Class="WPFInterview.ResourcesQuestion"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:MyNamespace="clr-namespace:WPFInterview"             
    >
    <Grid>
        <Grid.Resources>
            <LinearGradientBrush x:Key="BBrush">
                <GradientStop Color="Yellow" Offset="0"></GradientStop>
                <GradientStop Color="Red" Offset="1"></GradientStop>
            </LinearGradientBrush>
            <SolidColorBrush Color="LimeGreen" x:Key="BorderBrush"></SolidColorBrush>
            <Style TargetType="Button">
                <Setter Property="Background" Value="{StaticResource BBrush}"></Setter>
                <Setter Property="BorderBrush" Value="{StaticResource BorderBrush}"></Setter>
                <Setter Property="FontSize" Value="20"></Setter>
                <Setter Property="FontWeight" Value="Bold"></Setter>
            </Style>
        </Grid.Resources>
        <StackPanel>
            <Button>This is a test Button</Button>
            <MyNamespace:CustomControlQuestion Height="100" Background="White"/>
            <FlowDocumentScrollViewer>
                <FlowDocument>
                    <Paragraph>How to define resource for style</Paragraph>
                </FlowDocument>
            </FlowDocumentScrollViewer>         
        </StackPanel>
    </Grid>
</UserControl>
